<?php
$this->breadcrumbs=array(
	'Users'=>array('index'),
	$model->id,
);

$this->menu=array(
	array('label'=>'用户列表', 'url'=>array('index')),
	array('label'=>'添加用户', 'url'=>array('create')),
	array('label'=>'编辑用户', 'url'=>array('update', 'id'=>$model->id)),
	array('label'=>'删除用户', 'url'=>'#', 'linkOptions'=>array('submit'=>array('delete','id'=>$model->id),'confirm'=>'Are you sure you want to delete this item?')),
	array('label'=>'管理用户', 'url'=>array('admin')),
);
?>

<h1>用户详情 - <?php echo $model->username; ?></h1>

<?php
    if($model->role != Null && $model->role != '')
        $model->role = CActiveRecord::model('Role')->find('id='.$model->role)->rolename; 
    
    $model->status = CActiveRecord::model('Status')->find('id='.$model->status)->statusname;
    $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
		'id',
		'username',
		'domain',
		'realname',
		//'password',
		'email',
		'role',
		'status',
		'lastedit',
		'lastlogin',
	),
)); ?>
